package de.tu_darmstadt.gdi1.xcom.view.events;

import de.tu_darmstadt.gdi1.framework.events.DefaultUserInterfaceEvent;
import de.tu_darmstadt.gdi1.xcom.controller.events.GameStateEnum;
import de.tu_darmstadt.gdi1.xcom.model.elements.GameElement;

public class UIStateChangeEvent extends DefaultUserInterfaceEvent<GameElement>{

	private GameStateEnum state;

	public UIStateChangeEvent(GameStateEnum state) {
		super();
		this.state = state;
		if(this.state == GameStateEnum.PAUSED)
			this.setPauseMode(true);
		else
			this.setPauseMode(false);
	}

	public GameStateEnum getState() {
		return state;
	}
}
